import http from '../http'
export default{
    indexBannerList(params,callback){           //banner列表
        http.get('/banner/listByCode?code=web_index',{params},callback);
    },
    gameListBy(params,callback){           //服务管理列表
        http.get('/service/listBy',{params},callback);
    }, 
    recommendedDisplay(params,callback){           //为你推荐
        http.get('/userServiceInfo/app/recommendedDisplay',{params},callback);
    },
    newPersonDisplay(params,callback){           //新人推荐
        http.get('/userServiceInfo/app/newPersonDisplay',{params},callback);
    },
    listByService(params,callback){           // 游戏人物推荐
        http.get('/service/listByUserService',{params},callback);
    },
    listNameByNameLike(params,callback){           // 搜索-暂时不用
        http.get('/user/listNameByNameLike',{params},callback);
    },
    getUserServiceAuth(name,params,callback){           // 搜索
        http.get(`/user/getUserInfo/${name}`,{params},callback);
    },
    listByServiceUser(params,callback){           // 列表页
        http.get('/userServiceInfo/app/listByServiceUser',{params},callback);
    },
    getServiceInfo(id,params,callback){           // 列表页段位
        http.get(`/service/data/getServiceInfo?serviceId=${id}`,{params},callback);
    },
    serviceListBy(params,callback){           // 喜欢的服务
        http.get('/serverLike/listBy',{params},callback);
    },
    addLikeService(params,callback){           // 添加喜欢的服务
        http.post('/serverLike/add',params,callback);
    },
    updateLikeService(params,callback){           // 删除不喜欢的服务
        http.patch('/serverLike/update',params,callback);
    },
    nolikeService(params,callback){           // 没添加的服务
        http.get('/serverLike/nolikeService',{params},callback);
    },
    getUserCreditPopularityRankingTop(params,callback){           // 人气排行榜查询
        http.get('/credit/userCredit/app/getUserCreditPopularityRankingTop',params,callback);
    },
    wxShare(params,callback){           // 分享
        http.get('/wechatAPI/getShareJsapiTicket',{params},callback);
    },

    //
    listByGroupCodeFortTree(params,callback){
      http.get('dict/listByGroupCodeFortTree?groupCode=homePage_word',params,callback);
    },

    //人气榜单查询
    getUserCreditPopularityRanking(params,callback){
        http.get('credit/userCredit/app/getUserCreditPopularityRanking',{params},callback);
    },

    //财富榜查询
    getUserCreditWealthRanking(params,callback){
        http.get('credit/userCredit/app/getUserCreditWealthRanking',{params},callback);
    },
    //pc约陪玩服务列表
    listByGroup(params,callback){
        http.get('/service/listByGroup',{params},callback);
    },
    //pc约陪玩个性标签
    listByGroupCode(params,callback){
        http.get(`dict/listByGroupCode?groupCode=user_tags`,{params},callback);
    }
}